<?php include 'templates/header.php' ?>
<div class="container">    
        
    <div id="loginbox" class="mainbox col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3"> 
        
        
        <div class="login-panel panel-default" >
            <div class="panel-heading">
                <div class="panel-title text-center">zwop2.cf.com</div>
            </div>     

            <div class="login-panel-body" >
                
                <!--<form name="form" id="form" class="form-horizontal" enctype="multipart/form-data" method="POST">-->
                <?php echo form_open('login/login_user') ?>
                   
                    <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                        <input id="username" type="text" class="form-control" name="username" value="" placeholder="User">                                        
                    </div>

                    <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                        <input id="password" type="password" class="form-control" name="password" placeholder="Password">
                    </div>                                                                  

                    <div class="form-group">
                        <!-- Button -->
                        <div class="col-sm-12 controls">
                            <button type="submit" href="#" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-log-in"></i> Log in</button>                          
                        </div>
                    </div>

                </form>     
                <?php if (isset($login_error) && $login_error): ?>
                  <div class="alert alert-error">
                    Incorrect Username or Password!
                  </div>
                <?php endif; ?>

            </div>                     
        </div>  
    </div>
</div>
<?php include 'templates/footer.php' ?>
